package com.ymttest.database.sqlwapper;

import java.util.List;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.Ymt_O_OrderNoteHistory;
import com.ymttest.database.model.Ymt_Orders;

public class modifyrecipientIMapper {
	SqlManager manage;

	public modifyrecipientIMapper() {
		manage = new SqlManager("YmtRelease");
	}
	/*
	 * 根据ID查询收件人信息
	 */
	public List<Ymt_Orders> selectoperateuserid(Integer iorderId) throws InterruptedException {
	    @SuppressWarnings("unchecked")
	    List<Ymt_Orders>  operateuserids = manage.getSelectResults(
	            "com.ymttest.database.mapping.modifyrecipientMapper.selectoperateuserid", iorderId);
	    manage.commit();
	    return operateuserids;
	}
	
	/*
	 * 根据订单号ID查询收件人信息
	 */
	public List<Ymt_Orders> selectiorderIds(Integer ibuyerId) throws InterruptedException {
	    @SuppressWarnings("unchecked")
	    List<Ymt_Orders>  iOrderIds = manage.getSelectResults(
	            "com.ymttest.database.mapping.modifyrecipientMapper.selectiorderIds", ibuyerId);
	    manage.commit();
	    return iOrderIds;
	}
	
	/*
	 * 根据订单号状态查询收件人信息
	 */
	public List<Ymt_Orders> selectitradingStatus(Integer itradingStatus) throws InterruptedException {
	    @SuppressWarnings("unchecked")
	    List<Ymt_Orders>  iOrderIds = manage.getSelectResults(
	            "com.ymttest.database.mapping.modifyrecipientMapper.selectitradingStatus", itradingStatus);
	    manage.commit();
	    return iOrderIds;
	}
	
	/*
	 * 根据ID查询订单备注信息
	 */
	public List<Ymt_O_OrderNoteHistory> selectiuserId(Integer iuserId) throws InterruptedException {
	    @SuppressWarnings("unchecked")
	    List<Ymt_O_OrderNoteHistory>  iOrderId = manage.getSelectResults(
	            "com.ymttest.database.mapping.modifyrecipientMapper.selectiuserId", iuserId);
	    manage.commit();
	    return iOrderId;
	}
	
	/*
	 * 根据订单ID查询订单备注信息
	 */
	public List<Ymt_O_OrderNoteHistory> selectorderids(Integer iorderId) throws InterruptedException {
	    @SuppressWarnings("unchecked")
	    List<Ymt_O_OrderNoteHistory>  iOrderId = manage.getSelectResults(
	            "com.ymttest.database.mapping.modifyrecipientMapper.selectorderids", iorderId);
	    manage.commit();
	    return iOrderId;
	}

}
